﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ContactManager.Controllers.ContactFormViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Contact Details</h2>
    
<table class="data-table" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>
                Date Entered
            </th>
            <th>
                Group
            </th>
            <th>
                Name
            </th>
            <th>
                Phone
            </th>
            <th>
                Email
            </th>
        </tr>
    </thead>
    <tbody>
        
        <tr>
             <td>
                <%= Html.Encode((String.Format("{0:g}", Model.Contact.DateEntered))) %>
            </td>
             <td>
                <%= Html.Encode(Model.Contact.ContactGroup.Name) %>
            </td>
            <th>
                <%= Html.Encode(Model.Contact.FirstName) %>
                <%= Html.Encode(Model.Contact.LastName) %>
            </th>
            <td>
                <%= Html.Encode(Model.Contact.Phone) %>
            </td>
            <td>
                <%= Html.Encode(Model.Contact.Email) %>
            </td>
        </tr>
       
    </tbody>
</table>


    <p>

        <%= Html.ActionLink("Edit", "Edit", new { id=Model.Contact.Id }) %> |
        <%= Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

